<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        <style>
        *{
            padding:0px;
            margin:0px;
        }
        div{
            width: 100px;
            height: 100px;
            position: relative;
        }
        .d1{
            background:red;
            top:400px;
            left:0px;
        }
        .d2{
            background:green;
            top:300px;
            left:0px;
            z-index: 199;
        }
        .d3{
            background:blue;
            top:200px;
            left:0px;
        }
        .d4{
            background:yellow;
            top:100px;
            left:0px;
            z-index: 100;
        }
        .d5{
             background:pink;
             z-index: 199;
         }

    </style>
</head>
<body>
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
    <div class="d4"></div>
    <div class="d5"></div>
</body>
</html>